import { request } from '@/utils/request'
// 运输任务
export function orderDetails (data) {
  return request.get('/shipment/app/getShipmentListByDriverId', data)
}
// 接受任务
export function driverReceive (data) {
  return request.post('/shipment/app/driverReceiveShipment', data, {
    header: {
      'content-type': 'application/x-www-form-urlencoded'
    }
  })
}
// 任务详情
export function getShipmentDetailById (data) {
  return request.get('/shipment/app/getShipmentDetailById', data)
}
// 出车检查项
export function carByType (data) {
  return request.get('/system/dict/data/byType', data)
}
// 出车检查回显
export function selectByCheck (data) {
  return request.get('/shipment/shipmentCheck/selectByCheck', data)
}
// 出车检查
export function shipmentCheckSave (data) {
  return request.post('/shipment/shipmentCheck/save', data)
}
// 出车检查保存图片
export function shipmentAnnex (data) {
  return request.post('/shipment/shipmentAnnex/save', data)
}
// 到达
export function stopArrive (data) {
  return request.post('/shipment/app/stopArrive', data, {
    header: {
      'content-type': 'application/x-www-form-urlencoded'
    }
  })
}
// 离开 运单信息
export function getWaybillAndLineByStop (data) {
  return request.get('/order/app/getWaybillAndLineByStop', data)
}

// 签收登记获取信息
export function getGoodsListByWaybillId (data) {
  return request.get('/shipment/app/getGoodsListByWaybillId', data)
}
// 确认登记
export function saveEpodDetail (data) {
  return request.get('/order/app/epod/saveEpodDetail', data)
}
